import request from '/@/utils/request';

// 查询考勤组 成员列表
export function listUser(query?: Object) {
  return request({
    url: '/module/attendance/groupUser/list',
    method: 'get',
    params: query
  })
}

// 查询考勤组 成员详细
export function getUser(id?: number) {
  return request({
    url: '/module/attendance/groupUser/' + id,
    method: 'get'
  })
}

// 新增考勤组 成员
export function addUser(data?: Object) {
  return request({
    url: '/module/attendance/groupUser',
    method: 'post',
    data
  })
}

// 修改考勤组 成员
export function updateUser(data?: Object) {
  return request({
    url: '/module/attendance/groupUser',
    method: 'put',
    data
  })
}

// 删除考勤组 成员
export function delUser(id?: number) {
  return request({
    url: '/module/attendance/groupUser/' + id,
    method: 'delete'
  })
}

// 导出考勤组 成员
export function exportUser(query?: Object) {
  return request({
    url: '/module/attendance/groupUser/export',
    method: 'get',
    params: query
  })
}
